/**
 * jims
 */
package com.jims.master.modules.finance.service;

import java.util.List;

import com.jims.master.modules.doctor.entity.ClinicMaster;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.finance.entity.RegistCost;
import com.jims.master.modules.finance.dao.RegistCostDao;

/**
 * 挂号费用记录Service
 * @author 赵宁
 * @version 2017-03-07
 */
@Service
@Transactional(readOnly = true)
public class RegistCostService extends CrudService<RegistCostDao, RegistCost> {

	public RegistCost get(String id) {
		return super.get(id);
	}
	
	public List<RegistCost> findList(RegistCost registCost) {
		return super.findList(registCost);
	}
	
	public Page<RegistCost> findPage(Page<RegistCost> page, RegistCost registCost) {
		return super.findPage(page, registCost);
	}
	
	@Transactional(readOnly = false)
	public int save(RegistCost registCost) {
		return super.save(registCost);
	}
	
	@Transactional(readOnly = false)
	public int delete(RegistCost registCost) {
		return super.delete(registCost);
	}

	/**
	 * 查询挂号费用
	 * @param clinicMaster
	 * @return
	 * @author 赵宁
	 */
	public List<RegistCost> getRegistCosts(ClinicMaster clinicMaster){
       return  dao.getRegistCosts(clinicMaster);
	}
}